// 跳转微信客服
export default function toService(latitude, longitude, name) {
	 plus.share.getServices(res => {
		const wechat = res.find(i => i.id === 'weixin')
		if (wechat) {
			wechat.openCustomerServiceChat({
				corpid: 'wwe65e42984fae47c5', //第三步获取
				url: 'https://work.weixin.qq.com/kfid/kfcfac446aaf4af24a5'
			}, src => {
				console.log("success:")
			}, err => {
				console.log("error:")
			})
		} else {
			uni.showToast({
				title: '当前环境不支持',
				icon: "error"
			});
		}
	});

}